/** ###################################################################
**     Filename  : Events.H
**     Project   : Motologger_v2
**     Processor : MC9S12XD256BMFU
**     Beantype  : Events
**     Version   : Driver 01.04
**     Compiler  : CodeWarrior HCS12X C Compiler
**     Date/Time : 11/14/2009, 6:08 PM
**     Abstract  :
**         This is user's event module.
**         Put your event handler code here.
**     Settings  :
**     Contents  :
**         Vbat_Gear_ADC_OnEnd - void Vbat_Gear_ADC_OnEnd(void);
**         SM1_OnRxChar        - void SM1_OnRxChar(void);
**         SM1_OnTxChar        - void SM1_OnTxChar(void);
**         SM1_OnError         - void SM1_OnError(void);
**
**     (c) Copyright UNIS, spol. s r.o. 1997-2007
**     UNIS, spol. s r.o.
**     Jundrovska 33
**     624 00 Brno
**     Czech Republic
**     http      : www.processorexpert.com
**     mail      : info@processorexpert.com
** ###################################################################*/

#ifndef __Events_H
#define __Events_H
/* MODULE Events */

#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
#include "PE_Timer.h"
#include "SpeedTimer.h"
#include "TachTimer.h"
#include "LSD0.h"
#include "TimestampTimer.h"
#include "Sample120hz.h"
#include "Keepalive.h"
#include "GPS_SCI.h"
#include "Wifi_SCI.h"
#include "FcnSw.h"
#include "GPS_1PPS.h"
#include "DbgOut.h"
#include "Leds.h"
#include "INT1.h"
#include "SPI1_ACCEL.h"
#include "INT2.h"
#include "ACCEL_CS.h"
#include "Vbat_Gear_ADC.h"
#include "TachOut_PPG.h"
#include "EInt1.h"
#include "LSD1.h"
#include "ScheduleTimer.h"

#pragma CODE_SEG DEFAULT

void Vbat_Gear_ADC_OnEnd(void);
/*
** ===================================================================
**     Event       :  Vbat_Gear_ADC_OnEnd (module Events)
**
**     From bean   :  Vbat_Gear_ADC [ADC]
**     Description :
**         This event is called after the measurement (which
**         consists of <1 or more conversions>) is/are finished.
**         The event is available only when the <Interrupt
**         service/event> property is enabled.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void Cpu_OnReset(void);
/*
** ===================================================================
**     Event       :  Cpu_OnReset (module Events)
**
**     From bean   :  Cpu [MC9S12XD256_80]
**     Description :
**         This software event is called after reset.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void Cpu_OnSCMChanged(void);
/*
** ===================================================================
**     Event       :  Cpu_OnSCMChanged (module Events)
**
**     From bean   :  Cpu [MC9S12XD256_80]
**     Description :
**         This event is triggered by any change of the SCM status
**         bit of the Clock monitor module.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void Sample120hz_OnInterrupt(void);
/*
** ===================================================================
**     Event       :  Sample120hz_OnInterrupt (module Events)
**
**     From bean   :  Sample120hz [TimerInt]
**     Description :
**         When a timer interrupt occurs this event is called (only
**         when the bean is enabled - <Enable> and the events are
**         enabled - <EnableEvent>). This event is enabled only if a
**         <interrupt service/event> is enabled.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void INT1_OnCapture(void);
/*
** ===================================================================
**     Event       :  INT1_OnCapture (module Events)
**
**     From bean   :  INT1 [Capture]
**     Description :
**         This event is called on capturing of Timer/Counter actual
**         value (only when the bean is enabled - <Enable> and the
**         events are enabled - <EnableEvent>.This event is enabled
**         only if a <interrupt service/event> is enabled.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void GPS_1PPS_OnCapture(void);
/*
** ===================================================================
**     Event       :  GPS_1PPS_OnCapture (module Events)
**
**     From bean   :  GPS_1PPS [Capture]
**     Description :
**         This event is called on capturing of Timer/Counter actual
**         value (only when the bean is enabled - <Enable> and the
**         events are enabled - <EnableEvent>.This event is enabled
**         only if a <interrupt service/event> is enabled.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void EInt1_OnInterrupt(void);
/*
** ===================================================================
**     Event       :  EInt1_OnInterrupt (module Events)
**
**     From bean   :  EInt1 [ExtInt]
**     Description :
**         This event is called when an active signal edge/level has
**         occurred.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/
void IgnSw_OnCapture(void);
/*
** ===================================================================
**     Event       :  IgnSw_OnCapture (module Events)
**
**     From bean   :  IgnSw [Capture]
**     Description :
**         This event is called on capturing of Timer/Counter actual
**         value (only when the bean is enabled - <Enable> and the
**         events are enabled - <EnableEvent>.This event is enabled
**         only if a <interrupt service/event> is enabled.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void FcnSw_OnCapture(void);
/*
** ===================================================================
**     Event       :  FcnSw_OnCapture (module Events)
**
**     From bean   :  FcnSw [Capture]
**     Description :
**         This event is called on capturing of Timer/Counter actual
**         value (only when the bean is enabled - <Enable> and the
**         events are enabled - <EnableEvent>.This event is enabled
**         only if a <interrupt service/event> is enabled.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void ScheduleTimer_OnInterrupt(void);
/*
** ===================================================================
**     Event       :  ScheduleTimer_OnInterrupt (module Events)
**
**     From bean   :  ScheduleTimer [TimerInt]
**     Description :
**         When a timer interrupt occurs this event is called (only
**         when the bean is enabled - <Enable> and the events are
**         enabled - <EnableEvent>). This event is enabled only if a
**         <interrupt service/event> is enabled.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void TimestampTimer_OnInterrupt(void);
/*
** ===================================================================
**     Event       :  TimestampTimer_OnInterrupt (module Events)
**
**     From bean   :  TimestampTimer [TimerInt]
**     Description :
**         When a timer interrupt occurs this event is called (only
**         when the bean is enabled - <Enable> and the events are
**         enabled - <EnableEvent>). This event is enabled only if a
**         <interrupt service/event> is enabled.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void GPS_SCI_OnRxChar(void);
/*
** ===================================================================
**     Event       :  GPS_SCI_OnRxChar (module Events)
**
**     From bean   :  GPS_SCI [AsynchroSerial]
**     Description :
**         This event is called after a correct character is
**         received.
**         The event is available only when the <Interrupt
**         service/event> property is enabled and either the
**         <Receiver> property is enabled or the <SCI output mode>
**         property (if supported) is set to Single-wire mode.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void GPS_SCI_OnTxChar(void);
/*
** ===================================================================
**     Event       :  GPS_SCI_OnTxChar (module Events)
**
**     From bean   :  GPS_SCI [AsynchroSerial]
**     Description :
**         This event is called after a character is transmitted.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void GPS_SCI_OnFullRxBuf(void);
/*
** ===================================================================
**     Event       :  GPS_SCI_OnFullRxBuf (module Events)
**
**     From bean   :  GPS_SCI [AsynchroSerial]
**     Description :
**         This event is called when the input buffer is full.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void GPS_SCI_OnFreeTxBuf(void);
/*
** ===================================================================
**     Event       :  GPS_SCI_OnFreeTxBuf (module Events)
**
**     From bean   :  GPS_SCI [AsynchroSerial]
**     Description :
**         This event is called after the last character in output
**         buffer is transmitted.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void Wifi_SCI_OnError(void);
/*
** ===================================================================
**     Event       :  Wifi_SCI_OnError (module Events)
**
**     From bean   :  Wifi_SCI [AsynchroSerial]
**     Description :
**         This event is called when a channel error (not the error
**         returned by a given method) occurs. The errors can be
**         read using <GetError> method.
**         The event is available only when the <Interrupt
**         service/event> property is enabled.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void Wifi_SCI_OnRxChar(void);
/*
** ===================================================================
**     Event       :  Wifi_SCI_OnRxChar (module Events)
**
**     From bean   :  Wifi_SCI [AsynchroSerial]
**     Description :
**         This event is called after a correct character is
**         received.
**         The event is available only when the <Interrupt
**         service/event> property is enabled and either the
**         <Receiver> property is enabled or the <SCI output mode>
**         property (if supported) is set to Single-wire mode.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void Wifi_SCI_OnTxChar(void);
/*
** ===================================================================
**     Event       :  Wifi_SCI_OnTxChar (module Events)
**
**     From bean   :  Wifi_SCI [AsynchroSerial]
**     Description :
**         This event is called after a character is transmitted.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void Wifi_SCI_OnFullRxBuf(void);
/*
** ===================================================================
**     Event       :  Wifi_SCI_OnFullRxBuf (module Events)
**
**     From bean   :  Wifi_SCI [AsynchroSerial]
**     Description :
**         This event is called when the input buffer is full.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void Wifi_SCI_OnFreeTxBuf(void);
/*
** ===================================================================
**     Event       :  Wifi_SCI_OnFreeTxBuf (module Events)
**
**     From bean   :  Wifi_SCI [AsynchroSerial]
**     Description :
**         This event is called after the last character in output
**         buffer is transmitted.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void GPS_SCI_OnError(void);
/*
** ===================================================================
**     Event       :  GPS_SCI_OnError (module Events)
**
**     From bean   :  GPS_SCI [AsynchroSerial]
**     Description :
**         This event is called when a channel error (not the error
**         returned by a given method) occurs. The errors can be
**         read using <GetError> method.
**         The event is available only when the <Interrupt
**         service/event> property is enabled.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void SpdCounter_OnInterrupt(void);
/*
** ===================================================================
**     Event       :  SpdCounter_OnInterrupt (module Events)
**
**     From bean   :  SpdCounter [TimerInt]
**     Description :
**         When a timer interrupt occurs this event is called (only
**         when the bean is enabled - <Enable> and the events are
**         enabled - <EnableEvent>). This event is enabled only if a
**         <interrupt service/event> is enabled.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void SpeedTimer_OnCapture(void);
/*
** ===================================================================
**     Event       :  SpeedTimer_OnCapture (module Events)
**
**     From bean   :  SpeedTimer [Capture]
**     Description :
**         This event is called on capturing of Timer/Counter actual
**         value (only when the bean is enabled - <Enable> and the
**         events are enabled - <EnableEvent>.This event is available
**         only if a <interrupt service/event> is enabled.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void TachTimer_OnCapture(void);
/*
** ===================================================================
**     Event       :  TachTimer_OnCapture (module Events)
**
**     From bean   :  TachTimer [Capture]
**     Description :
**         This event is called on capturing of Timer/Counter actual
**         value (only when the bean is enabled - <Enable> and the
**         events are enabled - <EnableEvent>.This event is available
**         only if a <interrupt service/event> is enabled.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

void TachTimer_OnOverflow(void);
/*
** ===================================================================
**     Event       :  TachTimer_OnOverflow (module Events)
**
**     From bean   :  TachTimer [Capture]
**     Description :
**         This event is called if counter overflows (only when the
**         bean is enabled - <Enable> and the events are enabled -
**         <EnableEvent>.This event is available only if a <interrupt
**         service/event> is enabled.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

/* END Events */
#endif /* __Events_H*/

/*
** ###################################################################
**
**     This file was created by UNIS Processor Expert 2.98 [03.98]
**     for the Freescale HCS12X series of microcontrollers.
**
** ###################################################################
*/
